#ifndef __MESSAGE__
#define __MESSAGE__
#include "RT.h"
#include "Tokenizing.h"
#include <string>

using namespace std;

class Message{

  private:
	char* m_message;
	char** m_brokenMessage;
	Tokenizing tokenizer;
	List* list;
  	int i,len;
	int _type;
	int _from;
	int _dest;
	int _to;
	RT* _routing;


  public:
  	Message(int type, int from, int to, int dest, char* message);
	Message(int type, int from, int to, RT* message);
	Message(void* message);
	Message(Message* msg);
	~Message();
	int type();
	int from();
	int to();
	int dest();
	char* text();
	void set_to(int k);
	void set_dest(int k);
	void set_type(int k);
	void set_from(int k);
	void setRT(RT* toset);
	RT* getRT();
	char* getMessageAtIndex(int i);
	char** getBrokenMessage();
};
#endif


